File: xil_common.h

    1   /* Copyright 2011 The MathWorks, Inc. */
    2   
    3   /*
    4    * File: xil_common.h
    5    *
    6    * SIL/PIL common definitions
    7    */
    8   
    9   #ifndef __XIL_COMMON_H__
   10   #define __XIL_COMMON_H__
   11   
   12   #include "rtwtypes.h"
   13   #include <string.h> /* include definition of size_t */
   14   
   15   /*
   16    * UNUSED_PARAMETER(x)
   17    *   Used to specify that a function parameter (argument) is required but not
   18    *   accessed by the function body.
   19    */
   20   #ifndef UNUSED_PARAMETER
   21   # if defined(__LCC__)
   22   #   define UNUSED_PARAMETER(x)                                   /* do nothing */
   23   # else
   24   
   25   /*
   26    * This is the semi-ANSI standard way of indicating that an
   27    * unused function parameter is required.
   28    */
   29   #   define UNUSED_PARAMETER(x)         (void) (x)
   30   # endif
   31   #endif
   32   
   33   /* MIN is typically used in data stream implementations */
   34   #ifndef MIN
   35   #define MIN(a,b) ((a) < (b) ? (a) : (b))
   36   #endif
   37   
   38   #endif
   39